More error handling/printing.