TMS solution drives better margins for refining & midstream company