Updated frequency device script