Added Stash support and spec test.