Got things working nicely, still bit of error, possibly numerical