Add simple command processing in Sample App