Added random initialization.