Changed conception of generator and change a bit code for it