Added file trailer code