Suppressing deprecated warning