Update MAPLE code