Adapt to the callbacks convention, it receives error parameter now