File dialog seems to work ok, needs testing.