Added getAccount function