Changed deprecated function #2