Pattern/ST to input needs debug.