Removed duplicate rules function call