Boundary functions in the control of gene expression