Trying my auto commit script obviously doesnt work