Modified code to work with older version of Vixen