Started working on error handling.