Implements saving pills to shared PillsManager class