Commented out the stuff that I couldn't make work.