Added support for random background.