Added Phase model, domain id constant