Removed redundant/unused codes for better readability.