Added a main, to be used for benchmarking