Retrieval class and loggin