Added initial get_entites() function; incomplete