Adding permission insertion for struct (will be tested later)