Changed code structure for improved performance
Added Placetypes option to settings panel