End debug subs