If any of the commands in generate() fails, there's no error handling in place.