Adding shutdown timer