added speed control via variable