Implemented and tested shared manager. Closes #169.