Reorganized code and only can configure the offset for inner and the offset for center line.