Started porting methods from python api