Add pre_consume and post_consume extensions.