Set up local variables and settings, added TODOs