Modified sec4