Code for the MAXPac Project