Modify input to use select().
Modify messages structure, add poke command.