The pronoun can be appended in expressions with estar + gerundio. The pronoun must be appended in expressions of gerundio in adverbial form.