Initial version that can collect stats and deliver them to the API