WIP: error handling and printing.