Yup worked like a charm, it was just a copy/paste from the wimp plugin.