Removed redundand code logic.