Fix some bugs. Add splines and area.