Tested and fixed. This script should work with HM-10 modules