Added chain-repository to return chain heads