Add closing curly brace that was missing to close function
Modify indentation