More error checking.