Added print variables function