Add more logging to load frame script logic