Corrected scope and indentation, I hope