It seems that by the indentation this 'else' statement only creates the quote form. Its a little confusing to have the rest of the code outside of the else statement if it would not be reached unless the else statement was entered anyway. Was this intentional?