Added getState()-method