Improvments to difference phase