AccountManager coded but need testing/debugging.