Made a start with error handling.