Checking for proper commit