First pass implementation of main_filter_lastal.