Added ejecta.allowSleepMode; close #270