Added code to set user ID