Moved assert functions to separate file.