Dont use local variable for folder, and debug output