Implement nested function calls