Added free list function.