Improving object loader. Not functional yet.