Combined the first $rules declaration and the filter into a single line.