BEFORE Various functions and updates ok