Add really ugly code to delete masters