Copied Gardinbus scripts - still needs to be finished