Auto update

Closes #370.