Changed unless conditional to if statement