I'm thinking this should throw an error to stop execution rather than just outputting an error message.