Modify slot set code to clear all metadata