Support flagging users, better error handling