Remove depraction warning