Got rid of some junk and comments, and added IF NOT EXISTS