Buggy basic implemantation.