Implement srm support (fixes #4)