Updated LED pin functionality to work with out LED as well