Added function to pretty print commands run