Added random object functionality