Adds general method to calculate appropriate speeds for a scripted head command.