Added Possibility to flush debug output
Commit after merge