Led refactor