Added input parameter for parnest