Fixes to errors. App compiles now.