Attempting to get print functionality to work

Adding print functionality to help debug,