Changed Rule function constructor. Fixes #4