Add the background main function