Improve trigger handling.
Tweak listing of flags.
Improve line of sight algorithm.