Moved the coordinator to its own file.