Extracted helper and main class from CLI