Added processes synchronization before saving opt