Creating fixed frames per second