New function + changed function name to be more logical

Added timeout callback function
Changed userId to userInfo