Added code to randomize background