Added variable fps