Removed duplicate codes