Adding methods to get machine status and to turn off and on