Moving monitor print stuff to functions