Changed:
1. Script adjustment
2. Add filter function.