Prepare for rake tasks.
Rewrite in ruby.