Added function to wireup plugin