Got contact function to work