Tidied up debug printouts of variables