Added linecap option