Internal utility class