Use a runtime config to store globally shared stuff
Modularize logic for playback simulation