Helper function update