Changed Lattice to Spire interface (hackish now).
Removed inline.
Switched from for to cforRange.