Changed if statement