Changed scanner to skip blank lines