Changed comparison to equality comparison