Added TRES support