Got scanner to work the way I want it to