Auto commit by script