FERM Script which allows only pre-defined number of sessions