Charlie's method from GitHub is added, but is not working well.