Add user flagging code to result class