Added better line style support.