Draft submit -- Fixed list index exception in the script.