Internal variables + max_id feature (see #6)