Cleaned up console.c