Fix previous version

There were some syntax errors and such.