Adding frequency variable to each module