Added improved console command infrastructure.