Fix indentation and rename variable