It's not easy to attract and retain talent, but in New York City, two startups go above and beyond.

Earlier this month, Great Place to Work--a workplace culture consultancy in New York-- released its annual list of the top 30 technology companies to work for, in partnership with Fortune. The company surveyed more than 42,000 employees at tech companies across the country, and divided the list into large and small- to-mid-size winners. Among them: HR services firm Justworks (No. 12) and tech startup Yext (No. 4).

Of course, there are numerous great places to work in the Big Apple. Last year, Fortune nodded to companies like PwC and Goldman Sachs, while Crain's suggested Hulu and Button. This year, these were the only New York companies to make this particular list.

"Technology professionals look for employers that create value and do good things in the world beyond their doors," noted Kim Peters, executive vice president at Great Place to Work, in an interview with Fortune. "Team members at the best workplaces can count on their leaders to recognize individual contributions toward shared goals and values."

To her point, workers--and Millennials in particular--increasingly value companies that demonstrate corporate social responsibility. As many as 87 percent of Millennials say that a company's success should not only be measured in financial terms, but also in terms of corporate social responsibility--that is, how much they give back to charity, for example. That's according to a 2016 Deloitte Millennial Survey. The research also points out that Millennials rank their personal values and morals as having the greatest influence on the decisions they make at work.

That spirit is especially palpable at Yext, where 99 percent of those surveyed said the culture offered "great challenges" and "great pride." One unique perk: The company partners with a local nonprofit, NYCares, to train employees for volunteer opportunities around the city. Yext was launched by co-founders Howard Lerman, Brent Metz, and Brian Distelburger back in 2006, and now counts more than 530 employees and an impressive $89.1 million in annual sales.

"There is a unique energy at Yext," staffers said of the company. "Even when people are having a stressful or frustrating week, we are all united by driving the company forward toward our goals."

Some would argue that it's equally important for employers to offer training seminars and workshops to help their employees advance professionally. At Justworks, staffers get access to interview training that can help them lead--or land even better jobs in future. Generally speaking, employees felt that their ideas were heard and considered, regardless of their status within the company.

"This is an organization in which the leaders are the wheels and the employees are the vehicle," they said. Of course, it doesn't hurt that the company's health care plan will cover fertility treatments, or that the office is incredibly dog friendly.

Last year was a bright spot for many New York City startups, Justworks included. Amid a difficult funding climate, the four-year-old startup managed to raise $33 million, from investors including Thrive Capital and Bain Capital Ventures. Today, Justworks counts more than 140 employees.