added time scaling to speed up and slow down
added blending between functions now