Changed PersitentHistory to standalone plugin