Added modal to complete function.