Reworked the output to be inverse logic