More debug information for error checking
Treat filter directions as arrays, and debug them properly