Corrected third party addon code to new code