Fixed bug and indentation.