Removed all deprecated warning.