Add functions and equality comparison