Properly use custom $ignore variable