Added DEBUG switch for switching between auto/maunal entering file path