Fix rules typo + converting prints to logs