Update to the newest version and use this code from the wiki.