Romeru
wild theoru here: bernard knew Riley would be unatippable so he implanted some kind of hypnotism (taking advantage of autosm). Dependency on IMR so he has something to do and is more or less stable, dependency on Hannah (family time, he wanta her daugther protected) and Aerith (immortal that can keep him company and given her values it's right). It seema dementia because he can fiddle with any machine and serm whatever.