Add recorded action functionality

Closes #2