Updated commit checking