Added write statement.