Commiting error check stuff