Removed duplicated codes