Adapted version in Rakefile