AYER -- Assistant Treasurer Melisa Doig is leaving Ayer for Groton after being appointed the town's new human resource director.

Doig sent in her resignation letter on Tuesday, writing that she has always considered Ayer her second home.

"While I will miss my friends here at the Town of Ayer, I feel that it is time for new challenges and experience that will be beneficial to my long-term career goals and objectives," she wrote.

"The past 15 and a half years have been a great learning experience," the letter continued. "I could not have asked to work with a better group of department heads, boards, employees, and retirees. I have grown in many ways during my time here and I appreciate the opportunities provided to me by the Town of Ayer."

Doig beat out 14 other applicants for the department-head position, and Groton selectmen voted to ratify her appointment at their meeting on Monday.

Doig, who manages payroll and benefits in Ayer, will be overseeing benefits administration, personnel and recruitment at her new job, she said in her office on Wednesday.

She said she will miss being in Ayer, but said the switch was a good career move.

"I'm looking forward to the challenges that are coming my way," she said.

Doig said she has really enjoyed her job, which has been a great experience for her. She first came to Town Hall from the private sector.

"I wouldn't have worked anywhere else to start my career," she said.

Doig went through one round of interviews with a search committee and had a second interview with department heads, she said. The resignation will be effective April 21.

Follow Amelia on Twitter and Tout @AmeliaPakHarvey.