Corrected - but not quite - the calls to get-inmem