Added oscillation_factor argument.