Fixed a few minor errors. Still not working.