Add support for recording instead of simulating