Added checking to already generated files