C.J. Miles announced Wednesday on Twitter that he is headed to the Indiana Pacers via free agency.

Miles and the Pacers agreed to a four-year deal in the $18 million range, sources confirmed. The deal could potentially cut into the Pacers' flexibility when it comes to trying to re-sign swingman Lance Stephenson.