identify_levels function

Identifies levels of behaviour for g.part5 function.