at pains

[at pains] {adj. phr.} Making a special effort.

At pains to make a good impression, she was prompt for her appointment.