Changes to new logic

Removed double negative statement and included debug lines.