Adding end of file code