This is needed to prevent division with 0