Added variational derivatives and started steepest descent