Prepare objects for hierarchal structure