Generator: Added _generate_local_variables()