Made unfinished code at least compile.