added sleeping option