Improve exec.rb