Fixed arguments passed to save function