Added frames per second variable