it will also return the state of the output. Nothing hard to solve through a bitwise operation or simply by breading the bits you need.