Used proper comparison operator