Ghetto variable width implementation.  Wow, not proud of this...