This is to avoid a divide by 0 problem. Added a comment near by for the rationale.