Modify contact function working