Added ability to select motion interpolation or function.