moved more of Fasts action to main and made functions static. For submission.