Replacing 'senderid' with 'userid'