Did some work with refs: did examples using dosync and alter.