Correct token and input coin selection (although selection is still far too imperfect)