Added save method for debugging