Using the background in code