Updated Code to work with the new background server