Added bs random receiver code