Trying to get rid of deprecation warning.