Definitions of take pains:

  • verb:   try very hard to do something