Removed redundant logic.