Modified if statement