Added rule generator with lambda parameter

Steps are no longer performed in bulk