Add whatAccount command, add processAccount function to simplify code