Removes deprecation warnings