Tagwater treatment