Changed method to getId.