Starting adding debug console functions