Refactored rakefile.