Move tws interface to a common class