added arguments for sleeptime and fifo