Added FreeStore trace logs and lastchunk correct handling.