Updated to use YACoin routines in yacoin.c