Turned into a function and put everything in one struct.
Fixed nasty bug with features 5,-5.