Removed diagnostic print statements from if/else condition.