Add memory allocation limit

Memory limit set to 64MB.