Commit timeout can be specified (by default, it's 600 seconds)
Modified code to deal w/ max_size constraints.