Cleaned up memory code