Added compressor hours and fixed some behaviour when machine state changes