Swapped out call to deprecated method