Functions with commits working. need to add proper error handling