Use string constants for identifying parameters of the script
Refactoring. Add some comments