Rework "hide_script.rb" to take roundtime into account