Updated loging to be asyncronous and printer friendly