Implementation of the Flux pattern.