Refactored Rakefile.