Used constants instead of boolean values.