Alexander Slessor
added error handling
edeeba1