added sleep command (unfortunately we cannot use the name 'wait' since it is reserved by Object)