---Add perp_fit method. Add config params.