Add fencing for constructor