Several brain regions are involved in social functions like detecting biological motion, perspective taking, processing emotions, and understanding goals and desires. Senses and facial recognition also contribute to social interaction. An important concept is the action-perception loop where individuals shape their environment and have their brain modified by it in turn. Mentalizing and developing theories of mind allow people to understand others' feelings and intentions. Attachment styles and nonverbal cues like gaze further influence social behaviors.