Removed recursive entity loading.
Attempt at making GetFileFromPathStack more reliable.
Reordered automatic file loading.