Completed background integration code.