Make outline snippet more versatile