Modification to allow additional control of ref output format