Now it compiles, still needs an update loop I think.