A TWL Modification to Simplify the Code