Added solving for t functionallity