Increasing readability.
Refactoring. Using maybe and either combinators.