Added retrieval code.