Added few extra functions and substituted long strings with local variables.