Added support for passing only atomic value for id.