History of people living in Taiwan

If I remember my history correctly, people started moving to Taiwan from the mainland in large numbers starting in the 16th century, or sometime around then. Anyone know how far back have aboriginal groups been in Taiwan?

Peter