Added pathChooser. Improved structure.