Added security prefix
Added prefix to output
Better support for empty string prefix