Rewrote load() function for efficiency.
Redid gatekeeper function.