UI Code added; change feature types back to 1000 when not using UI