Improving memory func and passing config to status funcs