Added getId method.