Track changes to the finder (now is a global variable and not passed around). Also some fixes to flag handling.