Untested, this is pretty much how I envisage it working, though.