Added phase filtering to the wrapping. Need to remove the hardcoded filter though