Replaced 'then' with 'done'