Separate module function, function generation move to edit