Added 'retrieve all' code