Before updating unity