rSem added to all functions
Merged