Update phase numbers