Added functions to print out data for testing purposes.