Removed duplicated function.