Remove history code