Changed deprecated function name