First attempt at implementing hexdrant. Does not work.