Moved update function into install file