Basic record and replay working