Changed dependency to 2.2 and changed deprecated call