Updated error handling messages and changed try's.