Add error parameter to perform method callback