Refactored library to be fluent and easily extensible.