IF and sugar and flour moderation?

Hello! I was wondering if I can still reap the benefits of IF, if I am still consuming small amounts of sugar and very little flour? I am doing great with the IF, but haven’t been able to consistently stay away 100% from sugar and flour but limiting it a great deal…thank you 💜