Add the filter function for the moments with the proper location