Incapsulate update function