Partially implemented and tested role restriction for recurse: completed for all variants, with simplistic tests.