Added condition for output form.