Added minjerk for the scale computation