Add memory allocation hooks
Add filelock