Modified background code. Updated constants