Pipeworks compatibility bug fix. Updated to work with newer pipeworks by removing code that seems to now be unneccessary.