Added retrieve func