Convert to newt api