Added 'latest' as possibility for ensure parameter