Moved background definition; added definition of selection for debug purposes.