Added deprecated api checks in files