Safer extension()