Enhanced to change frame rate.