Removed duplicated function