Configured logging. Updated retrieval to get only data that was added since the last retrieval.