BROKEN! More work trying to get loading to work without seg fault.