Implement the AccountManager. This is related to #6