Fixed a problem with the bounds on the direction. Very close to satisfactory
results are given.