Addition of SMS feature

use prefs.getInt