Setting up a load/unload loop.