The error handling supersedes the asserts imo