Directly introduce error handling/callbacks