Implement generic function calls properly