Changed how main and pins work together.