Changed LED behavior code