Updates to math and ml