Implement new API
Updates arguments packing to use new cli API.