Minor fixes. Added support for offset based candidate retrieval