Adding randomization for initialization