Make setting parameters work properly, added and tested get_snapshot.