Fixed errors in code causing it to not build.