Fixed the save function (was missing a closing bracket).