How can I avoid using the Update function in this example?