Researchers in Barcelona recently tracked 654 teams (3,190 workers) at 48 companies in Spain to ascertain what drives peak performance. Their investigation led them to six key factors that influence the success of teams. “They are interrelated,” says Mihaela Enache Zegheru, an author of the study and professor of economics and business at Universitat Oberta de Catalunya. If you’re not accounting for one, she says, you probably won’t do well with the other five, which can lead to issues such as lowered productivity and poor problem-solving. Here are some questions to keep in mind to get the most out of your employees:

Does the team have a 20/20 “group vision”? That means “common objectives and a common vision on work processes,” says Enache Zegheru. Is everyone clear on workflow and what’s happening next? Does everyone understand the overall goals—and believe in them?

Is the group a socially cohesive unit? It should function as one. Is it a true team or a forced-together pod of high-strung individuals with their own agendas? A strong group works through conflicts and supports members’ well-being.

Does everyone feel understood? Team members should not feel misheard or unaccepted. Do they feel psychological (or even physically) unsafe? If so, they’ll stop proposing ideas and sharing information, cutting off critical input.

Is everyone being challenged? Workers want assignments that help them grow and learn. “Challenge builds resilience and willingness to undertake new challenges,” says Enache Zegheru. No one feels good about phoning it in, but there’s a fine line: Employees perform best when they feel that they have a manageable workload.

Is creativity being fostered? Employees blossom when they come up with and implement new ideas. Does the group believe it’s creative? If it doesn’t, workers won’t be open to the best solutions; they’ll be unwilling to consider opposing positions and more inclined to conflict.

Are you being a leader? Managers need to offer support, motivation, and inspiration. That last one is key: Under inspiring leaders, workers are both more resilient and more likely to take on new challenges.