User detail function modified.