Added end_frame argument to play in Linear mode