Test conditional writing under weave as well
Remove some unused imports