The current edition of the citizenship law was adopted in 1998 after much debate and pressure from Russia and European Union, amending a more restrictive law, initially passed in 1994. In accordance with the law, Latvian citizens are those who had Latvian citizenship prior to June 17, 1940, and their descendants. Those who settled in Latvia during the Soviet occupation, with exception of those who did so subsequent to retirement from the Soviet Army, or were employees, informers, agents or safehouse keepers of the KGB, or of the security services, intelligence services or other special services of some other foreign state, can obtain Latvian citizenship via naturalization. Other categories of persons not eligible for naturalization include convicted criminals, state officials and servicemen of armed forces of a foreign state, members of Communist Party as well as members of certain affiliate organizations, who, after 13 January 1991, have acted against the Latvian State. Naturalization criteria include a conversational knowledge of Latvian, an oath of loyalty, renunciation of former citizenship, a 5-year residency requirement, and a knowledge of the Latvian constitution. As of November 2005, about 109,000 persons applied for naturalization and about 103,000 of them were granted Latvian citizenship.