First working version of mirror state