Moved console into separate function

* Hopefully I can test this later (Maybe break it up into even smaller functions?)