Added mergeVariables() to return if form fails.