Added printer thread stuff, for thread-safe, atomic message printing