Run init function on load.