In searching for candidates, the Mossad administers a variety of psychological and aptitude tests, as well as assessing their own current needs. If selected, a candidate must go through and pass the Mossad training academy, the "Midrasha", located near the town of Herzliya. The Mossad academy is the official summer residence of the Israeli Prime Minister. There they are taught the tradecraft of intelligence gathering for approximately three years. The main priority of training is to teach katsas how to find, recruit, and cultivate agents, including how to clandestinely communicate with them. They also learn how to avoid being the subject of foreign counter-intelligence, by avoiding car and foot surveillance, by killing, and by preventing foreign agents from creating 'traps' at meetings. Once training is completed, trainees will spend an apprenticeship period working on varying projects before becoming full-fledged katsas.