How to avoid pain when exercising