Made necessary modifications so this would run.