sentences:  In 2009–10, Martínez was the midfield engine once more– 46 official matches, nine goals – and netted a career-best six times in the league campaign as the side narrowly missed on another qualification to the UEFA Europa League.In 2011–12, under new manager Marcelo Bielsa, he began to be used regularly as a central defender, making 50 starts in the demanding role and receiving three red cards during the latter season, which saw them reach another domestic cup final as well as the decisive game in the Europa League, only to lose both matches 3–0.On 29 August 2012, after Bayern Munich paid the buyout clause of €40 million in his contract, Martínez signed a five-year contract with the German club.