Added new functions and re-wrote backend of FVEoptRun to be more univerzal