Some debuggin performed over retrieval functions