Added basic code to run the collector