Removed nonrelevant Exception handling