Added interface for simple record and replay