Added almost full Res management in TS.