First attempt to refactor.
Taking the shit out of Phraskell module.