Changed a Seq to an Array to speed some stuff up.
Syncing julien to work on experimental code.