Added metrics preferences. Exported some constant in GlobalConstants