Changed getMethod.