Moved to onRun()
Indentation typo
Add isActive() scope
Eager loading for thumbnails and discounts