added arguments for a file and a delay