Fixed indentation.
Changed order of variables around.