Linking prefabs and code

Now the code takes into consideration the new prefabs. They still need
some (a lot of) tuning.