Updated create routine lib.