Sorted out functionality for detecting interruptions, settings settings, SMS function.