Changed deprecated function
deprecated errors surpressed.