Improved get_user_stats