Adding debug output option