Fixed more runtime errors. It actually runs now.