added random slot assignment.