Implemented first version of data collector.