Made version of Dima's model that uses phiModel