Removing deprecated function.