Moved assert function to global assert object.