Added a functionality to control if you want to only create files