Added function to lookup the contactname.