Fixes #4. Add RSM support
0.4.0