Use function for comparison instead of function name