Adding new state error handler directly inside data.