[Edit] Removed redundant codes