Added fix end of file hook.