Mixer code moved to a separate file