Added profileCurve argument to profile class