A simple class for queuing functions for later execution.