[#20] Added some basic memory functions.