Load and unload functions made to actually execute on load and unload