Improve getting arm status script