Added load-from-file functions.