Added getState Method