Added logic to pull and parse contacts