Modified users command to work with GUI.