Period

Why is my period on and off? Does anxiety play a big role in regular periods? I had sex, but used protection.