Adaptable function without addRule