Impliment twss functionality