Added compilation into chunks of memory.