Updated for replication and rgbd recording.