fetch_heads function

Get updated heads during the last fetch.