Getting somewhere now. Just need to make it work... And test it all...