Removed useless comparisons and operations