Added optional recordFilter