Utilities for use with rxjava