Removed chain comparison and confusing parentheses