Removed some debug statments and changed file exist conditional