Qbo_stack moved to indigo and modified for more standard use