I would prefer if the flags matched the params: prevvalue and previndex