Function of selectively permeable membrane