Added PNS search logic. Closed #35.