Fixed \n on prefixes and added select to SP.