Replace hardcoded store ID = 1 with either input argument or detected default store ID.

@tim-bezhashvyly you tested the save()?  It seemed to be working without it so I wasn't sure whether or not it was necessary.