*Updated code for the param to conic algorithm