Resetting functions and gen-template to previous ver