Bug fixes and LED changes