Implement new get user id function