Replaced various hardcoded values with variables, which can be passed
as parameters to the script.