Removed duplicated functions.