Adding AccountManager support.