Updated to new style of foxx programming