Insert history if not registered