Commiting old memory control code

- Show mutex and macros use.