Some sort of working version. :)