Adding helper method to return nodes directly