Removed some error checking functions.