Add functionality: guess, pert and optim