Added the creating of contactRef