Tidied up the console mapping function. This should make a lot more sense now