Made FMM boundary passing more efficient