Move functions to read memory into Params