the 2006–07 season, and Gallacher retained his place in the side. When Green then signed for Premiership team West Ham, his position as first-choice keeper seemed assumed. Previous manager Nigel Worthington was sacked in October. Peter Grant was installed as the new manager and when watching his first city game from the stands against QPR, Gallacher was at fault for a last minute QPR equaliser. This led to Grant signing Jamie Ashdown on loan for a month. However Ashdown was sent off in his second game and Gallacher regained his place after this. Gallacher injured his foot against Hull and Lee Camp on loan from Derby came in for three games. In January 2007 in the 3–1 defeat against Plymouth Gallacher was at fault for two of the goals. After this Grant once again brought in another keeper on loan in Scotland international David Marshall. Marshall was supposed to be at City for the rest of the season but in the 4–0 FA cup defeat to Chelsea Marshall was injured and ruled out for the rest of the season. Once again Gallacher was first choice keeper. However, after three games Gallacher made another mistake in the match against Luton. Tony Warner was brought in on loan and he became Cities fifth goalkeeper of the season. Warner went on to play in the remaining games of the season. Gallacher was fourth choice keeper going into the 2007–08 season and his future at Norwich looked very bleak. He was loaned out to Dunfermline until January but in January his City contract was terminated by mutual consent. Dunfermline Athletic On 20 August 2007, Gallacher moved on loan to Scottish First Division side Dunfermline Athletic. He helped them earn valuable points with stunning penalty saves against Dundee and Queen of the South. On 31 December 2007, Gallacher's contract with Norwich City was terminated by mutual consent with immediate effect. One day later, it was officially announced that Gallacher had joined Dunfermline Athletic until the end of the season. After being arguably the best keeper in the division for most of the season, Gallacher signed a new contract with the Pars. St Mirren St Mirren signed Gallacher on a two-year deal in 2009, which allowed Gallacher to play in the Scottish Premier League. Following an excellent start to the 2009–10 season, Gallacher was called up to the Scotland squad for the friendly match against Wales.