Added functionality to fetch object by name