Hopefully fixes NaN issue
Merge pull request #88 from lukecampbell/nans

Hopefully fixes NaN issue