Added missing "then".