Change Main to adapt to jenkins configuration