Added thickness control.