Added setting of speed and pause