Remove duplicate function is fully implemented