Stocks struggled for direction on Wednesday.