Holding the rank of captain, Samantha Carter joins the SG-1 team in the pilot episode, "Children of the Gods". She comes under the temporary control of the Tok'ra Jolinar in season 2 and retains many of her memories, leading to an alliance with the Tok'ra against the Goa'uld. Carter's brief merging with Jolinar also assists her in detecting a Goa'uld presence and using certain Goa'uld technology. Carter is promoted to the rank of Major early in season 3. A misunderstanding of an alien technology in early season 4 forces Carter and her superior officer, Colonel Jack O'Neill, to admit that they care for one another "a lot more than [they're] supposed to". In Exodus (season 4), Carter uses a stargate to destroy a star by dialing the gate on P3W-451, the planet being consumed by a black hole (originally discovered in A Matter of Time), and launching the active stargate into the nearby star; the resulting imbalance in mass causing the star to go supernova and destroy Apophis's fleet.