Changed procedure flag to id for brevity