Added freemem ability