- heavily based? more like ported :P
  (I dont want to piss anyone, this is my first ever elisp stuff)