Update code in latest post.