Further devel of code to use mem pools