Refactoring into final variables. Deletion of unnecessary exceptions.