Split the three frequency-building operations into sequential processes for the sake of RAM usage.