Refactored claninfo functions