Refactoring error handling.
Write how-to-use.