Allows injection of custom trial selection functions in a block.