Added takeSnapShot.