Correct code of old post.