Adding some console messages for debugging.
Fixing issue with filters.