Switch to mocho and amdefine