License from GNU to MIT. TS bugs