Added deprecated warning