Test using new TC params and other code
New parameters
New constant
Fixed hardcoded stuff

Some values were hardcoded in text, so wrote code to remove hard coding.
Also, added some exception handling.