Rule based extension