Unnecessary line of code as locals can be get from the method get_variables.