Changed scanner to use Parsec