Cleanup initial condition and checking for parameter existance.