Read contacts

Incorporated changes of both master and read_contacts