Fixed sample CLI app to run on current API