Added auto close fence
Merged