Removed deprecation warning