Fixed update function.