Cleanup end-of-file temporary functions