Made it (almost) compile.