Temporary error checking.