Refactored to use classy-prelude and binary libraries.