Added the ability to change order of the frames