Implement script to filter SEMAFOR frames