Removed deprecated metho.