Upgraded scripts to work with 2.x Earth firmware