Added a more realisitic file simulator