Might want to consider making this an underscore prefixed function: `_commit`