Created working prototype for prefetch plugin