Some work on the save as btrack part. Not working at the moment