An extension of Azzalini's method