Added calcPrefs

No functionallity yet