First trial of generic second derivative fitting routine