Use load function to set initial variables