Added script to work with Java/filtering.