Add a maximum output length to update and final calls