Add basic logic to commit automatically.