Correcting indentation and variables