Code cleanup: unused var removed and indentation fixed