Changed variable names and explicitly ecluded the catch clause