Naive implementation of the snapshot part of the API