Fixed indentation and re-styled conditions.