Added MIT license
freezing state before doing something crazay