Fixes so that it compiles and runs.