Cleaned up code.
File is working.