Changed 'path filter' to 'outer filter' and added verbose mode that shows any SQL queries