Some refactorign and a little snake is born. :)