Replaced is_constant with is_number