Move this out of the function, or you'll require it every time it's called. You just want to do this once at startup.