Added weave code as starting point