Add some code from Akavache and ReactiveUI