Made call to calcTCI in main more accesible and readable.