Refactored filter to add posts only  if they exist. It doesn't work right now. File not found exception.