Add background and basic logic. Removed PHP code.