NEW YORK (AP) — Slovakian forward Adam Nemec has agreed to a contract with Major League Soccer's New York City FC.

The 29-year-old had spent the last 2 1/2 seasons with Union Berlin in the German second division after stints with Slovakia's MSK Zilina (2004-07), Germany's Erzgebirge Aue (2007-08), Belgium's Genk (2008-09), and Germany's Kaiserslautern (2009-11) and Ingolstadt (2012).

Nemec has two goals in 14 international appearances. The agreement was announced Monday.