used with other children and later with adult peers. As children move into the school years at about six years old, most develop a goal-corrected partnership with parents, in which each partner is willing to compromise in order to maintain a gratifying relationship. By middle childhood, the goal of the attachment behavioural system has changed from proximity to the attachment figure to availability. Generally, a child is content with longer separations, provided contact—or the possibility of physically reuniting, if needed—is available. Attachment behaviours such as clinging and following decline and self-reliance increases. By middle childhood (ages 7–11), there may be a shift toward mutual coregulation of secure-base contact in which caregiver and child negotiate methods of maintaining communication and supervision as the child moves toward a greater degree of independence. The attachment system used by adolescents is seen as a "safety regulating system" whose main function is to promote physical and psychological safety. There are 2 different events that can trigger the attachment system. Those triggers include, the presence of a potential danger or stress, internal and external, and a threat of accessibility and/or availability of an attachment figure. The ultimate goal of the attachment system is security, so during a time of danger or inaccessibility the behavioural system accepts felt security in the context of the availability of protection. By adolescence we are able to find security through a variety of things, such as food, exercise, and social media. Felt security can be achieved through a number of ways, and often without the physical presence of the attachment figure. Higher levels of maturity allows adolescent teens to more capably interact with their environment on their own because the environment is perceived as less threatening. Adolescents teens will also see an increase in cognitive, emotional and behavioural maturity that dictates whether or not teens are less likely to experience conditions that activate their need for an attachment figure. For example, when teenagers get sick and stay home from school, surely they want their parents to be home so they can take care of them, but they are also able to stay home by themselves without experiencing serious amounts of distress. Additionally, the social environment that a school fosters impacts adolescents attachment behavior, even if these same adolescents have not had issues with attachment behavior previously. High schools that have a permissive environment compared to an authoritative environment promote positive attachment