adding mature queue code and arming logic example