Changed some 'is' statements to '=='