Updating with code blocks