Remove function that was causing error