Removed deprecation warning.