Added setId method.