First working version of fsensure.