Added functionality for getting users