Fix a hooking error when changing profiles.
Remove unused frame level options.
Remove some unneeded code.