Added spread calculation.

Needs tests, RTL testing, vertical.