Changed from using plugin to using object due to OSX lib loading complications