Added debug messages to give a clearer indication of what is occurring. Cleaned up logs to better show what is being recorded.