what causes spotting?

I was wondering what could cause spotting during the time a period is due besides implantation bleeding?