* Added error handling on the defined variables.