I am adding overhead lighting and ceilings fans in my house. The house is set up with a light switch controlling one outlet in each room. I have to cut into the wall and put a junction box in and run the extra wire needed. The first couple of rooms were no problem as the receptacles were end of the line. Today the one I did is not end of the line. It has two cables running to it, both white wires are hooked to the outlet and the black wires are tied together. The wiring then goes back into the attic and I “think” hooks into a hall light switch. I need the ceiling fan and light to go off with the switch in the bedroom. Any ideas how to wire this? TIA