Changed indentation and added function description