First working version of myregit