anm: Get rid of some very silly goto statements