Added LED toggle and exit on T4