First complete version of the runner. To be integrated with UI