Final version of get account functionality.