Updated comments for beforeFilter and afterFilter events