Use nondeprected method