Setup processing loops.