Making basic console functions work