Suppressed warnings by using not deprecated things