Deal with loading into frame by checking for 'define' first