Moved console methods into console.c and console.h