Add basic fence generation