Updated to work with my forked pallet