Copypasted Fidelio_Functions.py from original