Fixed the way we had been taking parameters in main, now runs