End to write LIFO, and add file to test