Removed a redundant check. Clarified comments.