Added random block generation