Fixed function call for pie method