Added unload mechanism and made loading files transactional