Rakefile borrowed from Josh.