Adding initial version of print_data function. Will need debugging.