Relocate console supporting code to prepare