Made plugin actually work