Updated script convenience, fixed permission bug