First uploaded version (simple history algorithm)