Moved closing bracket to end of condition.