Refactoring. Exceptions.