Ok it now works. Very inefficent, but I can always fix that later.