How was it wired before you opened it up or is the something you bought that didn't have a cord? Could it be a two speed fan?