Added support for getByName method.