Made if statement comparisons less strict.