Added mutex for editing ECTS struct