Fixed exceptions. It now works to run an empty file.